Warning: mkdir(): No space left on device in /var/www/tg-me/post.php on line 37

Warning: file_put_contents(aCache/aDaily/post/cppproglib/--): Failed to open stream: No such file or directory in /var/www/tg-me/post.php on line 50
Библиотека C/C++ разработчика | cpp, boost, qt | Telegram Webview: cppproglib/5745 -
Telegram Group & Telegram Channel
⚡️ GDB: отладка без перекомпиляции

Сколько раз ты менял код, добавляя printf для отладки, а потом забывал их удалить перед коммитом?

Решение: Условные breakpoint'ы в GDB

$ gdb ./your_program
(gdb) break main.cpp:42 if user_id == 123
(gdb) run


GDB остановится только когда user_id равен 123!

Ещё круче:

- (gdb) commands 1 - добавить команды к breakpoint'у
- (gdb) watch variable_name - остановка при изменении переменной

Бонус: set print pretty on сделает вывод структур читаемым 🎯

Попробуй прямо сейчас и напиши, сколько printf удалил из кода😄

Библиотека C/C++ разработчика #буст



tg-me.com/cppproglib/5745
Create:
Last Update:

⚡️ GDB: отладка без перекомпиляции

Сколько раз ты менял код, добавляя printf для отладки, а потом забывал их удалить перед коммитом?

Решение: Условные breakpoint'ы в GDB

$ gdb ./your_program
(gdb) break main.cpp:42 if user_id == 123
(gdb) run


GDB остановится только когда user_id равен 123!

Ещё круче:

- (gdb) commands 1 - добавить команды к breakpoint'у
- (gdb) watch variable_name - остановка при изменении переменной

Бонус: set print pretty on сделает вывод структур читаемым 🎯

Попробуй прямо сейчас и напиши, сколько printf удалил из кода😄

Библиотека C/C++ разработчика #буст

BY Библиотека C/C++ разработчика | cpp, boost, qt




Share with your friend now:
tg-me.com/cppproglib/5745

View MORE
Open in Telegram


Библиотека C C разработчика | cpp boost qt Telegram | DID YOU KNOW?

Date: |

Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at ₹43,559 crore at the end of March 2021 compared to the company’s market capitalisation of ₹44,447 crore.

The STAR Market, as is implied by the name, is heavily geared toward smaller innovative tech companies, in particular those engaged in strategically important fields, such as biopharmaceuticals, 5G technology, semiconductors, and new energy. The STAR Market currently has 340 listed securities. The STAR Market is seen as important for China’s high-tech and emerging industries, providing a space for smaller companies to raise capital in China. This is especially significant for technology companies that may be viewed with suspicion on overseas stock exchanges.

Библиотека C C разработчика | cpp boost qt from cn


Telegram Библиотека C/C++ разработчика | cpp, boost, qt
FROM USA